#ifndef GOOLNN_CANGYAN_WINDOW_IAMGESEDITOR
#define GOOLNN_CANGYAN_WINDOW_IAMGESEDITOR

#include <QVBoxLayout>
#include <QScrollArea>
#include <QPushButton>
#include <QHBoxLayout>
#include <QLabel>

#include "window/ImagesManager.hpp"

#include <QDialog>

#include "window/Editor.hpp"
#include "file/CYFile.hpp"

class ImagesList : public QDialog{
    Q_OBJECT
    
    private:
        QVBoxLayout* layout;

        QHBoxLayout* nameLayout;
        QLabel* nameLabel;

        QScrollArea* scrollArea;
        ImagesManager* imagesManager;

        QHBoxLayout* buttonLayout;
        QPushButton* acceptButton;
        QPushButton* cancelButton;

        CYFile* file;
        Editor* editor;
    
    public:
        ImagesList(CYFile* file, Editor* editor, QWidget* parent = nullptr);

        ~ImagesList();
    
    private slots:
        void cancel();
        void accept();

};

#endif
